import QtQuick 2.11
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.11
import FluentUI

/**EMColumnDetail
  * 渲染单列数据的组件，对外提供jsonDraw函数根据传入的dict
  * 设置对应组建的相关属性进行渲染
  */


FluScrollablePage{
    id: root
    title: "Ori Data"

    EMColumnImageWrapper{
        id: file
        title: "file"
    }

    EMColumnImageWrapper{
        id: seg
        title: "seg"
    }

    EMColumnImageWrapper{
        id: cam
        title: "cam"
    }

    EMColumnImageWrapper{
        id: camplus
        title: "camplus"
    }


    EMColumnChartWrapper{
        id: grade
        title: "chart"
    }


    function jsonDraw(jsonDict){
        file.setImageSource(jsonDict['file'])
        seg.setImageSource(jsonDict['seg'])
        cam.setImageSource(jsonDict['cam'])
        camplus.setImageSource(jsonDict['camplus'])
        grade.setChartData(jsonDict['chart'])
    }

}
